package com.dyh.quickdemo.bizDemo.sfCustomer;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


/*
@Author=Joey Wheeler
@Date=2021/1/25 14:45
*/
@Configuration
@Slf4j
public class SfCustomizer extends AbstractCustomer{

   @Autowired
   Customizer dCustomizer;


  @FunctionalInterface
  interface Customizer{
      void work(String str);
  }

  public void work(String str){
      dCustomizer.work(str);
  }

  @Bean
  public Customizer dCustomizer(){
        return e->log.info(baseService.hello()+":"+e);
  }
}
